package com.minimalist.common.entity.basic.enums;

/**
 * 公共的状态枚举
 * 对应每张表中的status字段
 *
 * @author 11987
 */
public enum StatusEnum{
    /**
     * 公共的状态枚举
     */
    STATUS_0(0, "禁用"),
    STATUS_1(1, "正常"),
    ;
    private final Integer code;
    private final String desc;

    StatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
